#include "StdAfx.h"
#include "ImporterFactory.h"

CFileImporterFactory::CFileImporterFactory(void)
{
}

CFileImporterFactory::~CFileImporterFactory(void)
{
}


void CFileImporterFactory::Initialize()
{

}

CFileImporter* CFileImporterFactory::Create(const CString& szId)
{
	CFileImporter* pFileImporter = CreateObject(szId);
	return pFileImporter;
}

//////////////////////////////////////////////////////////////////////////

CRegFileImporterHelper::CRegFileImporterHelper(const CString& guid, CFileImporterCreator* pCreator)
:m_Guid(guid)
{
	Register(pCreator);
}

CRegFileImporterHelper::~CRegFileImporterHelper()
{
	//GetEditorFactory().UnRegisterObject(m_Guid);
}

void CRegFileImporterHelper::Register(CFileImporterCreator* pCreator)
{
	bool bResult = GetFileImporterFactory().RegisterObject(m_Guid, pCreator);
	ASSERT(bResult);
}